package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import com.youlu.campus.entity.VO.req.ReceiveCaVO;
import com.youlu.campus.entity.VO.req.RecieveCaDetailVO;
import com.youlu.campus.entity.domain.ActivityTaskDataDomain;
import com.youlu.campus.entity.enums.TaskBizType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 用户待领取奖励表证书表
 */
@Getter
@Setter
@Document(collection = "user_recieve_ca_opt")
public class UserRecieveCaOpt extends EntityBase {
    @Indexed
    private String userId;
    @Indexed
    private String activityId;
    @Indexed
    private TaskBizType taskBizType;
    /**
     * 证书材质0:电子,1:纸质
     */
    private Integer material;
    private String universityId;
    private String universityName;
    /**
     * 证书分组表
     */
    private String caGroupName;
    private String province;
    private String city;
    private String area;
    private String address;
    private String mobile;
    private String email;
    /**
     * 0：未领取,1:已领取
     */
    private Integer status = 0;
    /**
     * 来源,0:自有平台,1:三方平台
     */
    private String from;
    /**
     * 来源名称,例如:金数据,自有H5
     */
    private String fromName;
    /**
     * APP ID
     */
    private String appId;
    /**
     * openId
     */
    private String openId;
    /**
     * 活动数据
     */
    private ActivityTaskDataDomain taskData;
    /**
     * 证书信息
     */
    private RecieveCaDetailVO recieveCaDetail;

    /**
     * 原始数据
     */
    private ReceiveCaVO receiveCaVO;

}
